/**
 *  *2010-9-14 下午09:59:48  add 
 */
package com.base.myproject.client.tools;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * 调用存储过程
 * @author Administrator
 *2010-9-14
 * javazgw@gmail.com
 */
public class CommandPrepareCall extends CommandSync implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = -9119844146519063042L;

	String callname ; //insert_new_row2 (?,?,?)
	
	List<Item> itemlist = new ArrayList<Item>();
	//支持的类型
/*	public  static enum Type implements Serializable
	{
		String,
		Int,
		Timestamp,//yyyy-mm-dd hh:mm:ss
		Long,
		Boolean,
		Money;
	}*/
	public final static int STRING = 1;
	public final static int INT = 2;
	public final static int TIMESTAMP = 4;//yyyy-mm-dd hh:mm:ss
	public final static int LONG = 8;
	public final static int BOOLEAN = 16;
	public final static int MONEY = 32;
	
	public CommandPrepareCall()
	{
		commandname="PREPARECALL";
	}
	
	public String getCallname() {
		return callname;
	}

	public void setCallname(String callname) {
		this.callname = callname;
	}

	public void addItem(String value,int type)
	{
		itemlist.add(new Item(value,type));
	}
	
	
	public List<Item> getItemlist() {
		return itemlist;
	}

	
	
}
